
all: compile_prepare server_compile
.PHONY: all

compile_prepare:
	echo "prepare to copy files."
	cp ../gen-cpp/thrift/cpp/* ./
	cp SQLService_server.skeleton.cpp SQLServer.cpp


server_compile:
	g++ -g -o SQLServer -I/usr/local/include/thrift \
	-I/usr/include/boost/ \
	-L/usr/local/lib -lthrift -lthriftnb \
	SQLServer.cpp SQLService_types.cpp SQLService_constants.cpp SQLService.cpp